//
//  HomeComNurseCell.m
//  Ginix
//
//  Created by fzq on 2025/2/23.
//

#import "HomeComNurseCell.h"
#import "HomeTongueComView.h"

@interface HomeComNurseCell()
@property (nonatomic,strong) HomeTongueComView * nameView;
@property (nonatomic,strong) YYLabel * nameLabel;

@end

@implementation HomeComNurseCell

-(void)setSubViewLayout{
    [super setSubViewLayout];
    
    self.titleLabel.text = @"调理建议";
    
    [self addSubview:self.nameView];
    [self addSubview:self.nameView];
    [_nameView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(@0);
        make.height.mas_offset(21 * FMScaleX);
        make.top.equalTo(self.iconView.mas_bottom).offset(15 * FMScaleX);
    }];
    [self addSubview:self.nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.nameView.mas_bottom).offset(15 * FMScaleX);
        make.size.mas_offset(CGSizeMake(300 * FMScaleX, 80 * FMScaleX));
        make.centerX.equalTo(@0);
    }];
}

-(void)setInfoModel:(HomeAllCheckInfoModel *)infoModel{
    
    self.nameLabel.text = infoModel.rubdown;
    
    
}

-(HomeTongueComView *)nameView{
    
    if (!_nameView) {
        _nameView = [[HomeTongueComView alloc]init];
        _nameView.nameLabel.text = @"按摩调理建议:";

    }
    return _nameView;
}
-(YYLabel *)nameLabel{
    
    if (!_nameLabel) {
        _nameLabel = [[YYLabel alloc]init];
        _nameLabel.font = Regular(13);
        _nameLabel.textColor = RDRGB(0x333333);
        _nameLabel.textContainerInset = UIEdgeInsetsMake(8 * FMScaleX, 8 * FMScaleX, 8 * FMScaleX, 8* FMScaleX);
//        _nameLabel.text = @"荧实意故仁粥：用荧实50克、慧故仁50克、梗米100克，加入清水适量，明火煲粥食用。煲至友实、慧故仁开花为度。";
        _nameLabel.numberOfLines = 0;
        _nameLabel.backgroundColor = RDRGB(0xF5F2ED);
    }
    return _nameLabel;
}

@end
